<?php
/**
 *
 * @var VoteController $this
 */
$this->addCssFile('finish-legislatif.css');
$pilihan = array();
for($i=0; $i<4; $i++) {
    $pilihan[] = $_SESSION['leg_' . $i];
}

function imgPartai($step) {
    $pilihan = $_SESSION['leg_' . $step];
    echo '<img src="images/partai', $pilihan[0], '.png">';
}

function imgCaleg($step) {
    $pilihan = $_SESSION['leg_' . $step];
    echo '<img src="images/caleg-', $step, '-', $pilihan[0], '-', $pilihan[1], '.png">';
}


?>
<div id="bg">
    <div class="container">
        <img src="img/header.png"/>
        <br/><br/><br/><br/>
        <div class="row">
            <div class="col-lg-12">
                <div class="col-lg-8 centerImg">

                    <div class="row text-center title">
                        <div class="col-lg-4" id="partai1">
                            DPRD Tingkat 2
                        </div>
                        <div class="col-lg-4" id="partai1" style="margin-left:70px;">
                            DPRD Tingkat 1
                        </div>
                    </div>


                    <div class="row">
                        <div class="col-lg-2" id="partai1">
                            <?php imgPartai(0); ?>
                        </div>
                        <div class="col-lg-2" id="partai1">
                            <?php imgCaleg(0); ?>
                        </div>
                        <div class="col-lg-2" id="partai1" style="margin-left:70px;">
                            <?php imgPartai(1); ?>
                        </div>
                        <div class="col-lg-2" id="partai1">
                            <?php imgCaleg(1); ?>
                        </div>
                    </div>

                    <div class="row text-center title" style="padding-top:120px;">
                        <div class="col-lg-4  buttonUlang" id="partai1">
                            <a href="<?php echo $this->createUrl('legislatif', array('step' => 0)) ?>"></a>
                        </div>
                        <div class="col-lg-4 buttonUlang" id="partai1" style="margin-left:70px;">
                            <a href="<?php echo $this->createUrl('legislatif', array('step' => 1)) ?>"></a>
                        </div>
                    </div>

                    <div class="row text-center title" style="padding-top:20px;">
                        <div class="col-lg-4" id="partai1">
                            DPD
                        </div>
                        <div class="col-lg-4 col-md-offset-1" id="partai1">
                            DPR RI
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-lg-2" id="partai1">
                            <?php imgPartai(2); ?>
                        </div>
                        <div class="col-lg-2" id="partai1">
                            <?php imgCaleg(2); ?>
                        </div>

                        <div class="col-lg-2" id="partai1" style="margin-left:70px;">
                            <?php imgPartai(3); ?>
                        </div>
                        <div class="col-lg-2" id="partai1">
                            <?php imgCaleg(3); ?>
                        </div>
                    </div>
                    <div class="row text-center title" style="padding-top:120px;">
                        <div class="col-lg-4 buttonUlang" id="partai1">
                            <a href="<?php echo $this->createUrl('legislatif', array('step' => 2)) ?>"></a>
                        </div>
                        <div class="col-lg-4 buttonUlang" id="partai1" style="margin-left:70px;">
                            <a href="<?php echo $this->createUrl('legislatif', array('step' => 3)) ?>"></a>
                        </div>
                    </div>


                </div>
                <div class="col-lg-4 col-md-pull-1 thanks">
                    <br>
                    <span style="font-weight:bold;">Terima Kasih</span>,<br>atas partisipasinya dalam Pemilu 2014<br> Klik untuk menyimpan pilihan
                    <br>
                    <form class="text-center buttonKeluar" id="partai1" method="post">
                        <button type="submit" name="submit" value="1">&nbsp;</button>
                    </form>
                </div>
            </div>
        </div>
    </div>